home *** CD-ROM | disk | FTP | other *** search
- Path: news.erg.cuhk.hk!khtsang
- From: khtsang@cs.cuhk.hk (Fan.. ... ...)
- Newsgroups: cs.forum,cuhk.se.3420,comp.lang.c
- Subject: Re: Help: a very segmentation fault!
- Followup-To: cs.forum,cuhk.se.3420,comp.lang.c
- Date: 11 Apr 1996 10:44:38 GMT
- Organization: Engineering Faculty CUHK
- Message-ID: <4kinqm$hnt@eng_ser1.erg.cuhk.hk>
- References: <4ki7gu$bgc@eng_ser1.erg.cuhk.hk>
- NNTP-Posting-Host: sun29.cs.cuhk.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm a good man (mfchan@cs.cuhk.hk) wrote:
- > This is really the most strange thing I come across in C programming.
-
- > main()
- > {
- > char block[82];
- > fp2 = fopen("fool", "r+b");
- > writeblock(fp2, 0, OVERFILE, block);
- > }
-
- > Need your help. Million Thks!
-
- I've tried the program... That's okay... except some syntax error...
-
- One more thing... What is your platform?? There's no "r+b" mode for
- fopen on unix systems... Default mode is binary for all files.
-
- Ah Fan...
-
-